package com.niit.service;

import com.niit.entity.Info;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface InfoService {
    Info findByPhoneAndPassword(String phone, String password);
    Info findByPhone(String phone);
    Info save(Info info);
    Info findById(int id);
    Page<Info> findAll(String phone, String username, String realName, String gender, Pageable pageable);
    void deleteById(int id);
}
